<form id="add-form" action="<?php echo $this->getHelper('Partial')->view->websiteUrl; ?>sys/backend_form/addform/name/<?php echo $this->getHelper('Partial')->view->name; ?>/<?php echo (!empty($this->getHelper('Partial')->view->pId) ? 'pageId/' .$this->getHelper('Partial')->view->pId : ''); ?>" method="post">
   <p>
        <label>{%Use SMTP?%}</label>
        <?php echo $this->getHelper('Partial')->view->form->useSmtp; ?>
    </p>

    <p class="formcode">
        <label>{%Form Code%}*</label>
        <?php echo $this->getHelper('Partial')->view->form->code; ?>
    </p>
    <div style="text-align:left;  padding:5px 16px 16px 180px; font-size: 0.9em; font-style: italic;">
    If you want that the user subscribed for mailing "Constant Contact" use the following code: </br>&lt;p>&lt;label for="subscribeCC"&gt; subscribe: &lt;input type="checkbox" name="subscribeCC" value="1"/>&lt;p>
    </div>
    <p>
        <label>{%Mail to%}*</label>
        <?php echo $this->getHelper('Partial')->view->form->email; ?>
    </p>

    <p class="message">
        <label>{%Success message%}*</label>
        <?php echo $this->getHelper('Partial')->view->form->successMessage; ?>
    </p>

    <p class="message">
        <label>{%Error message%}</label>
        <?php echo $this->getHelper('Partial')->view->form->errorMessage; ?>
    </p>

    <p>
        <label>{%Auto-reply from%}*</label>
        <?php echo $this->getHelper('Partial')->view->form->emailFrom; ?>
    </p>

	<p>
        <label>{%Auto-reply subject%}</label>
        <?php echo $this->getHelper('Partial')->view->form->autoReplySubj; ?>
    </p>

    <p>
        <label>{%Auto-reply text%}</label>
        <?php echo $this->getHelper('Partial')->view->form->emailMessage; ?>
    </p>
	<p>
        <label>{%Track conversion?%}</label>
        <?php echo $this->getHelper('Partial')->view->form->track; ?>
    </p>
    <p>
        <label>{%Use Constant Contact%}</label>
        <?php echo $this->getHelper('Partial')->view->form->constantContact; ?>
		<button id="showPropertiesCC">Click to show Constant Contact Properties</button>
    </p>


    <div id="constantContactBlok">
    <p>
        <label>{%ConstantC Login%}</label>
        <?php echo $this->getHelper('Partial')->view->form->constantContactLogin; ?>

    </p>
    <p>
        <label>{%ConstantC Password%}</label>
        <?php echo $this->getHelper('Partial')->view->form->constantContactPassword; ?>

    </p>
    <p>
        <label>{%ConstantC Apikey%}</label>
        <?php echo $this->getHelper('Partial')->view->form->constantContactApikey; ?>

    </p>
    <p><button id="checkProperties">Check Properties</button></p>
     <p class="listOfThemes">
        <label>{%List of themes%}</label>
        <?php echo $this->getHelper('Partial')->view->form->ccListOfThemes; ?>

    </p>
    <ul class="emptyList"></ul>
    </div>
	<p id="tracking_details" style="display: none;">
		<label>{%Tracking code%}</label>
        <?php echo $this->getHelper('Partial')->view->form->trackCode; ?>
		<span class="form_screen_hint">include script tags such as &lt;script&gt;*&lt;/script&gt;</span>
    </p>
   <?php echo $this->getHelper('Partial')->view->form->formsubmit; ?>
   <?php echo $this->getHelper('Partial')->view->form->websiteUrl; ?>
   <?php echo $this->getHelper('Partial')->view->form->name; ?>
   <?php echo $this->getHelper('Partial')->view->form->id; ?>
   <?php echo $this->getHelper('Partial')->view->form->pageUrl; ?>
   <?php echo $this->getHelper('Partial')->view->form->pageId; ?>
    <div id="ccList">
   <?php if(isset ($this->getHelper('Partial')->view->constantContactList) && is_array($this->getHelper('Partial')->view->constantContactList)): ?>
	   <?php foreach ($this->getHelper('Partial')->view->constantContactList as $constantContactList): ?>
		  <input type="hidden" name="<?php echo $constantContactList; ?>" value=<?php echo $constantContactList; ?> />
	   <?php endforeach;?>
	<?php endif; ?>
    </div>
</form>
